package com.xyz.study.design_mode.n_chain_of_responsibility.mode;

/**
 * 角色：Handler 处理器
 *
 * @author XYZ
 * @version 1.0
 * @since 2023/1/11
 */
public abstract class Handler {
    public Handler next;

    public abstract boolean support(String something);

    public abstract void handle();

    public void next(Handler handler){
        this.next = handler;
    }
}
